package Mangos::DB::Characters::PetitionSign;

use strict;

use base qw(Mangos::DB::Characters);

__PACKAGE__->meta->setup
(
    table   => 'petition_sign',

    columns => 
    [
        ownerguid      => { type => 'integer', not_null => 1 },
        petitionguid   => { type => 'integer', not_null => 1 },
        playerguid     => { type => 'integer', not_null => 1 },
        player_account => { type => 'integer', default => '0', not_null => 1 },
        type           => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'petitionguid', 'playerguid' ],
);

1;

package Mangos::DB::Characters::PetitionSign::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Characters::PetitionSign' }

__PACKAGE__->make_manager_methods('petition_sign');

1;
